package edu.mju.scenic.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.mju.scenic.entity.Attractions;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author CBL
 * @since 2020-12-28
 */
public interface AttractionsService extends IService<Attractions> {

    boolean deleteByAttractionsId(Integer id);

    boolean deleteBySpotId(Integer id);

    List<Attractions> listBySpotId(Integer spotId);

    Map<String, Object> getCelebrity(IPage<Attractions> attractionsIPage);
}
